home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / src / GLperf3.12-src.lha / GLperf / Linear.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-01  |  2.4 KB  |  78 lines

  1. /*
  2.  *   (C) COPYRIGHT International Business Machines Corp. 1993
  3.  *   All Rights Reserved
  4.  *   Licensed Materials - Property of IBM
  5.  *   US Government Users Restricted Rights - Use, duplication or
  6.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7.  
  8. //
  9. // Permission to use, copy, modify, and distribute this software and its
  10. // documentation for any purpose and without fee is hereby granted, provided
  11. // that the above copyright notice appear in all copies and that both that
  12. // copyright notice and this permission notice appear in supporting
  13. // documentation, and that the name of I.B.M. not be used in advertising
  14. // or publicity pertaining to distribution of the software without specific,
  15. // written prior permission. I.B.M. makes no representations about the
  16. // suitability of this software for any purpose.  It is provided "as is"
  17. // without express or implied warranty.
  18. //
  19. // I.B.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  20. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL I.B.M.
  21. // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  22. // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  23. // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  24. // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. // Author:  John Spitzer, IBM AWS Graphics Systems (Austin)
  27. //
  28. */
  29.  
  30. #if (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_STRUCT)
  31. #include "Vertex.h"
  32.     GLfloat lineWidth;
  33.     int lineStipple;
  34. #elif (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_ARRAY)
  35. #include "Vertex.h"
  36.     {
  37.         LineWidth,
  38.         "Line Width",
  39.         offset(lineWidth),
  40.         RangedFloatOrInt,
  41.         {
  42.             { 0.0 },
  43.             { 1000.0 }
  44.         },
  45.         { NotUsed, 1.0 }
  46.     },
  47.     {
  48.         LineStipple,
  49.         "Line Stippling Enabled",
  50.         offset(lineStipple),
  51.         Enumerated,
  52.         {
  53.             { On,       "On" },
  54.             { Off,      "Off" },
  55.             { End }
  56.         },
  57.         { Off }
  58.     },
  59. #else  /* INC_REASON not defined, treat as plain include */
  60. #ifndef _Linear_h
  61. #define _Linear_h
  62.  
  63. #include "Vertex.h"
  64.  
  65. typedef struct _Linear {
  66. #define INC_REASON INFO_ITEM_STRUCT
  67. #include "Linear.h"
  68. #undef INC_REASON
  69. } Linear, *LinearPtr;
  70.  
  71. void new_Linear(LinearPtr);
  72. void delete_Linear(TestPtr);
  73. int Linear__SetState(TestPtr);
  74. float Linear__Size(TestPtr);
  75.  
  76. #endif /* file not already included */
  77. #endif /* INC_REASON not defined */
  78.